package com.huaiwei.usmManager.common.utils;

/**
 * 常量
 */
public class Constant {
	/** 超级管理员ID */
	public static final int SUPER_ADMIN = 1;
    /**
     * 当前页码
     */
    public static final String PAGE = "page";
    /**
     * 每页显示记录数
     */
    public static final String LIMIT = "limit";
    /**
     * 排序字段
     */
    public static final String ORDER_FIELD = "sidx";
    /**
     * 排序方式
     */
    public static final String ORDER = "order";
    /**
     *  升序
     */
    public static final String ASC = "asc";
	/**
	 * 菜单类型
	 */
    public enum MenuType {
        /**
         * 目录
         */
    	CATALOG(0),
        /**
         * 菜单
         */
        MENU(1),
        /**
         * 按钮
         */
        BUTTON(2);

        private int value;

        MenuType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    /**
     *启用
     */
    public static final int ON = 1;

    /**
     *禁用
     */
    public static final int OFF = 0;

    /**
     * 商品
     */
    public static final int GOODS = 0;

    /**
     * 展示柜
     */
    public static final int CABINET = 1;

    /**
     * 店铺
     */
    public static final int SHOP = 2;

    /**
     * 损坏
     */
    public static final int LOSS = 3;

}
